import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path:'/',
      redirect:'/home',
    },
    {
      path: '/home',
      name: 'home',
      component: ()=>import('views/home/Home.vue')
    },
    // {
    //   path:'/:id',
    //   name:'goodDetail',
    //   component:()=>import('components/content/goods/GoodsLIstItem.vue')
    // },
    {
      path:'/cart',
      name:'cart',
      component:()=>import('views/cart/Cart.vue')
    },
    {
      path:'/category',
      name:'category',
      component:()=>import('views/category/Category.vue')
    },
    {
      path:'/profile',
      name:'profile',
      component:()=>import('views/profile/Profile.vue')
    },
    {
      path:'/detail/:id',
      name:'goodsListItem',
      component:()=>import('views/detail//GoodsDetail.vue')
    }
   
  ]
})
